import React from 'react'
import { Link } from 'react-router-dom'
export default function Product({ data }) {
  return (
    <div>
      <Link to={ '/detail/' + data.id }>
        <img src={ data.image } alt="" />
      </Link>
      <div>
        <h2>{ data.name }</h2>
        <p>{ data.desc }</p>
      </div>
      <hr />
    </div>
  )
}
